<template>
  <div id="app">
    <tab-bar>
      <tab-bar-item path="/home">
        <img slot="item-icon" src="./assets/img/rhome.svg" />
        <!-- 动态切换img -->
        <img slot="item-icon-active" src="./assets/img/rhome-active.svg" />
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/category">
        <img slot="item-icon" src="./assets/img/fenlei1.svg" />
        <!-- 动态切换img -->
        <img slot="item-icon-active" src="./assets/img/fenlei1-active.svg" />
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/shopcar">
        <img slot="item-icon" src="./assets/img/xiazai1.svg" />
        <!-- 动态切换img -->
        <img slot="item-icon-active" src="./assets/img/xiazai1-active.svg" />
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/my">
        <img slot="item-icon" src="./assets/img/wode.svg" />
        <!-- 动态切换img -->
        <img slot="item-icon-active" src="./assets/img/wode-active.svg" />
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
    <router-view></router-view>
  </div>
</template>

<script>
import TabBar from './components/TabBar';
import TabBarItem from './components/TabBarItem';

export default {
  name: 'App',
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style lang="scss">
@import url('./assets/style/base.css');

</style>
